/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ceair.flight.refund.location.dt.dto;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 *
 * @author youguilin
 */
public class TktPrice {

    private BigDecimal tktPrice;

    private BigDecimal tktSalePrice;

    private BigDecimal taxAmount;

    private long tktPoints;

    public TktPrice() {
    }

    public TktPrice(BigDecimal tktPrice, BigDecimal tktSalePrice, BigDecimal taxAmount) {
        this(tktPrice, tktSalePrice, taxAmount, 0L);
    }

    public TktPrice(BigDecimal tktPrice, BigDecimal tktSalePrice, BigDecimal taxAmount, long tktPoints) {
        this.tktPrice = tktPrice == null ? BigDecimal.ZERO : tktPrice.setScale(2, RoundingMode.HALF_UP);
        this.tktSalePrice = tktSalePrice == null ? BigDecimal.ZERO : tktSalePrice.setScale(2, RoundingMode.HALF_UP);
        this.taxAmount = taxAmount == null ? BigDecimal.ZERO : taxAmount.setScale(2, RoundingMode.HALF_UP);
        this.tktPoints = tktPoints;
    }

    public BigDecimal getTktPrice() {
        return tktPrice;
    }

    public void setTktPrice(BigDecimal tktPrice) {
        this.tktPrice = tktPrice;
    }

    public BigDecimal getTktSalePrice() {
        return tktSalePrice;
    }

    public void setTktSalePrice(BigDecimal tktSalePrice) {
        this.tktSalePrice = tktSalePrice;
    }

    public BigDecimal getTaxAmount() {
        return taxAmount;
    }

    public void setTaxAmount(BigDecimal taxAmount) {
        this.taxAmount = taxAmount;
    }

    public long getTktPoints() {
        return tktPoints;
    }

    public void setTktPoints(long tktPoints) {
        this.tktPoints = tktPoints;
    }

    @Override
    public String toString() {
        return "TktPrice{" + "tktPrice=" + tktPrice + ", tktSalePrice=" + tktSalePrice + ", taxAmount=" + taxAmount + ", tktPoints=" + tktPoints + '}';
    }

}
